﻿using System.Web.UI;
using Coolite.Ext.Web;

namespace CooliteExamples.Web.Code
{
    public class PageBase : Page
    {
        public void DisplayErrorMessage(string message)
        {
            Ext.Msg.Show(new MessageBox.Config()
                             {
                                 Buttons = MessageBox.Button.OK,
                                 Closable = false,
                                 Icon = MessageBox.Icon.ERROR,
                                 Title = "An Error Occured",
                                 Message = message
                             });
        }
    }
}
